package com.tdkj.service.enterprisezone.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.persistence.Column;

import org.springframework.stereotype.Component;

import com.tdkj.dao.enterprisezone.IBeanEnterpriseDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseZoneFriendsLinkDao;
import com.tdkj.dao.exchangerate.IBeanExchangeRateDao;
import com.tdkj.dao.user.IBeanUserDao;
import com.tdkj.dao.yellowpage.impl.BeanEnterpriceDaoImpl;
import com.tdkj.model.enterprisezone.BeanEnterprise;
import com.tdkj.model.enterprisezone.BeanEnterpriseZoneFriendsLink;
import com.tdkj.model.exchangerate.BeanExchangeRate;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.BaseService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseZoneFriendsLinkService;
import com.tdkj.service.exchangerate.IBeanExchangeRateService;
            
@Component("enterpriseZoneFriendsLinkService")
public class BeanEnterpriseZoneFriendsLinkServiceImpl extends BaseService implements IBeanEnterpriseZoneFriendsLinkService{
	
	private IBeanUserDao beanUserDao ;

	public Boolean isValidMemberName(String memberName){
		List<BeanUser> userList = beanUserDao.findByProperty("username", memberName, BeanUser.class);
		if(userList.size() > 0){
			return true;
		}
		return false;
	}
	
	@Resource	
	public void setBeanUserDao(IBeanUserDao beanUserDao) {
		this.beanUserDao = beanUserDao;
	}

}
